package com.dean.entity;

/**
 * @ClassName DeanDataToolEntity
 * @Description jdcb 连接实体类
 * @Author dean
 * @Date 2021/10/3 10:03
 */
public class DeanDataToolEntity{
	
	/**
	 * 默认提交记录数为10000
	 */
	private static final Integer DEFAULT_SUB_RECORDS = 10000;
	/**
	 * 数据库驱动
	 */
	private String dbDriver;
	/**
	 * 数据库链接
	 */
	private String dbUrl;
	/**
	 * 数据库用户名
	 */
	private String dbUsername;
	/**
	 * 数据库密码
	 */
	private String dbPassword;
	/**
	 * 表名
	 */
	private String tableName;
	/**
	 * 插入数据指定的字段
	 */
	private String [] fields;
	/**
	 * 插入数据时 多少条一提交
	 */
	private Integer commitNum;

	public String getDbDriver() {
		return dbDriver;
	}

	public void setDbDriver(String dbDriver) {
		this.dbDriver = dbDriver;
	}

	public String getDbUrl() {
		return dbUrl;
	}

	public void setDbUrl(String dbUrl) {
		this.dbUrl = dbUrl;
	}

	public String getDbUsername() {
		return dbUsername;
	}

	public void setDbUsername(String dbUsername) {
		this.dbUsername = dbUsername;
	}

	public String getDbPassword() {
		return dbPassword;
	}

	public void setDbPassword(String dbPassword) {
		this.dbPassword = dbPassword;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String[] getFields() {
		return fields;
	}

	public void setFields(String[] fields) {
		this.fields = fields;
	}

	public Integer getCommitNum() {
		return commitNum == null?DEFAULT_SUB_RECORDS:commitNum;
	}

	public void setCommitNum(Integer commitNum) {
		this.commitNum = commitNum;
	}
	
	

}
